/**
 * Created by Administrator on 2017/7/18 018.
 */
import getters from './getters'
import state from './types'
// const getters = {  //第二种设定getters
//     isShow:(state)=>{
//         return state.isShow
//     },
//     isLoading:(state)=> {
//         return state.loading
//     }
// }
// const state ={  //第二种设定state
//     isShow: true,
//     loading:false
// }
const mutations = {
    showHeader(state){
        state.isShow = true
    },
    hideHeader(state){
        state.isShow = false
    },
    showLoading(state){
        state.loading = true
    },
    hideLoading(state){
        state.loading = false
    }
}
export default {
    state,
    mutations,
    getters
}
